/*
 * Copyright (c) 2022-2022 All rights Reserved.
 */

package com.driving.core.entity;

import org.apache.ibatis.type.Alias;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.driving.core.base.AbstractPerson;
import com.driving.core.mapper.type.Gender;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 管理员
 *
 * @author SAGITTAR
 * @since 2017
 */
@Getter
@Setter
@NoArgsConstructor
@Alias(value = "Admin")
@TableName(value = "tb_admin")
public class Admin extends AbstractPerson<Admin> {

    private static final long serialVersionUID = -8864069841824459365L;

    @TableField(value = "name")
    private String name;

    @TableField(value = "gender")
    private Gender gender;

    public Admin(Integer id) {
        super(id);
    }
}
